package net.shopxx.entity;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;

/**
 * 实体类 - 商品咨询
 */

@Entity
public class ProductConsult extends BaseEntity {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1662945113349789807L;
	
	public static final int MAX_CONSULT_COUNT=10;
	
	private String content;
	private Integer type;
	private Boolean reply;
	private String replycontent;
	private Admin admin;
	private Boolean status;
	private Member member;
	private Product product;
	@Column(length = 1024)
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public Integer getType() {
		return type;
	}
	public void setType(Integer type) {
		this.type = type;
	}
	public Boolean getReply() {
		return reply;
	}
	public void setReply(Boolean reply) {
		this.reply = reply;
	}
	@Column(length = 1024)
	public String getReplycontent() {
		return replycontent;
	}
	public void setReplycontent(String replycontent) {
		this.replycontent = replycontent;
	}
	@OneToOne(fetch = FetchType.LAZY)
	@JoinColumn(nullable = true)
	public Admin getAdmin() {
		return admin;
	}
	public void setAdmin(Admin admin) {
		this.admin = admin;
	}
	@Column(nullable = true)
	public Boolean getStatus() {
		return status;
	}
	public void setStatus(Boolean status) {
		this.status = status;
	}
	@OneToOne(fetch = FetchType.LAZY)
	@JoinColumn(nullable = true)
	public Member getMember() {
		return member;
	}
	public void setMember(Member member) {
		this.member = member;
	}
	@OneToOne(fetch = FetchType.LAZY)
	@JoinColumn(nullable = true)
	public Product getProduct() {
		return product;
	}
	public void setProduct(Product product) {
		this.product = product;
	}
	
	

}